package com.yuexunit.finance.geetest.service;

import com.yuexunit.finance.geetest.entity.GeetestSessionEntity;
import com.yuexunit.inject.annotation.Implements;
import com.yuexunit.persist.PersistUtil;
import com.yuexunit.persist.annotation.Transactional;

/**
*@version 创建时间：2016年11月2日 上午10:07:05
*@author wenwenlong
*类说明
*/

@Implements(GeetestSessionService.class)
public class GeetestSessionServiceImpl implements GeetestSessionService{

	@Override
	@Transactional
	public void createGeetestSession(GeetestSessionEntity entity) {
		PersistUtil.insert(entity);
	}

	@Override
	public GeetestSessionEntity getGeetestSession(String serverStatusSessionKey) {
		return PersistUtil.get(GeetestSessionEntity.class, serverStatusSessionKey);
	}
}
